package com.fs.files.service;

import java.io.File;
import java.io.InputStream;

public interface FileService {
	
	/**
	 * 保存文件到本地
	 * @param inputStream
	 * @param fileName
	 * @param path
	 * @throws Exception
	 */
	 void savePic(InputStream inputStream, String fileName, String path) throws Exception;
	
	/**
	 * 删除文件
	 * @param fullPath
	 * @throws Exception
	 */
	 void delPic(String fullPath) throws Exception;
	
	/**
	 * 删除目录下所有文件
	 * @param folderFullPath
	 * @throws Exception
	 */
	boolean deleteAllFile(String folderFullPath) throws Exception;
	
	/**
	 * 下载文件
	 * @throws Exception
	 */
	 InputStream DownFile() throws Exception;

	/**
	 * 复制文件
	 * @throws Exception
	 */
	 void copyFile(File src, File dst);
	
	/**
	 * 压缩文件
	 * @throws Exception
	 */
	 void zipFile(String sourceFolder, String zipFilePath);

}
